package com.example.sofa_module;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.lifecycle.Observer;
import androidx.viewbinding.ViewBinding;

import com.example.common.field.DataActionEntity;
import com.example.common.mvvm.view.BaseFragment;
import com.example.sofa_module.databinding.SofaFragmentBinding;
import com.example.sofa_module.databinding.TagSofaFragmentBinding;
import com.example.sofa_module.entity.TagDataXEntity;

import java.util.ArrayList;
import java.util.List;

public class SofaFragment extends BaseFragment<SofaFragmentBinding,SofaViewModel> {
    ArrayList<Fragment> list=new ArrayList<>();
    @Override
    public View bindLayout() {
        return v.getRoot();
    }

    @Override
    public ViewBinding initBinding() {
        return SofaFragmentBinding.inflate(inflater);
    }

    @Override
    public void initView() {
        list.add(new TagSofaFragment());
        list.add(new TagSofaFragment());
        list.add(new TagSofaFragment());
        v.tabSofa.setViewPager(v.vpSofa,new String[]{"图片","视频","文本"},getActivity(),list);
    }

    @Override
    public void initData() {

    }


}
